package com.ruoyi.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.system.domain.quality.QualityDefectType;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * 质量缺陷类型Mapper接口
 *
 * @author ruoyi
 * @date 2023-03-07
 */
public interface QualityDefectTypeMapper extends BaseMapper<QualityDefectType> {

    @Select("select id from ${table} where ${feild}=#{value}")
    Integer checkUnique(@Param("table") String table,@Param("feild") String feild,@Param("value") String value);


    @Select("select id from ${table} where code=#{value}")
    Integer checkUnique2(@Param("table")String table,@Param("value") String value);
}
